import { getHttp } from "../service/request";

// 轮播
export function getBannerApi() {
  return getHttp({ url: "/health/share/v1/bannersShow" });
}

// 标题
export function getHomeTitle() {
  return getHttp({
    url: "/health/share/information/v1/findInformationPlateList",
  });
}

interface ParamsState {
  plateId: number;
  count: number;
  page: number;
}

// 内容
export function getHomeListById(params: ParamsState) {
  return getHttp({
    url: "/health/share/information/v1/findInformationList",
    params,
  });
}

export function getListDetailByID(infoId: number) {
  return getHttp({
    url: "health/share/information/v1/findInformation",
    params: { infoId },
  });
}
